<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>SettingsLoader</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "SettingsLoader";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/SettingsLoader.html" class="symbol">SettingsLoader</a></h1>
  
<p class="sec_header">Author:</p>Aziz Köksal
<p class="sec_header">License:</p>GPL3
 <p><b>Maturity:</b> average.</p>
<dl>
<dt class="decl">class <a class="symbol _class" name="SettingsLoader" href="./htmlsrc/SettingsLoader.html#L23" kind="class" beg="23" end="75">SettingsLoader</a>; <span class="attrs">[<span class="stc">abstract</span>]</span> <a title="Permalink to this symbol" href="#SettingsLoader" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L23">#</a></dt>
<dd class="ddef">
<div class="summary">Loads settings from a D module file.</div>
<dl>
<dt class="decl">Diagnostics <a class="symbol _variable" name="SettingsLoader.diag" href="./htmlsrc/SettingsLoader.html#L25" kind="variable" beg="25" end="25">diag</a>; <a title="Permalink to this symbol" href="#SettingsLoader.diag" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L25">#</a></dt>
<dd class="ddef">
<div class="summary">Collects error messages.</div></dd>
<dt class="decl">Module <a class="symbol _variable" name="SettingsLoader.mod" href="./htmlsrc/SettingsLoader.html#L26" kind="variable" beg="26" end="26">mod</a>; <a title="Permalink to this symbol" href="#SettingsLoader.mod" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L26">#</a></dt>
<dd class="ddef">
<div class="summary">Current module.</div></dd>
<dt class="decl"><a class="symbol _ctor" name="SettingsLoader.this" href="./htmlsrc/SettingsLoader.html#L28" kind="ctor" beg="28" end="31">this</a><span class="params">(Diagnostics <em>diag</em>)</span>; <a title="Permalink to this symbol" href="#SettingsLoader.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L28">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="SettingsLoader.error" href="./htmlsrc/SettingsLoader.html#L37" kind="function" beg="37" end="42">error</a><span class="params">(Token* <em>token</em>, char[] <em>formatMsg</em>, ...)</span>; <a title="Permalink to this symbol" href="#SettingsLoader.error" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L37">#</a></dt>
<dd class="ddef">
<div class="summary">Creates an error report.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>token</em></td><td>where the error occurred.</td></tr>
<tr><td><em>formatMsg</em></td><td>error message.</td></tr></table></dd>
<dt class="decl">T <a class="symbol _function" name="SettingsLoader.getValue" href="./htmlsrc/SettingsLoader.html#L44" kind="function" beg="44" end="59">getValue</a><span class="tparams">(T)</span><span class="params">(char[] <em>name</em>)</span>; <a title="Permalink to this symbol" href="#SettingsLoader.getValue" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L44">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">T <a class="symbol _function" name="SettingsLoader.castTo" href="./htmlsrc/SettingsLoader.html#L61" kind="function" beg="61" end="71">castTo</a><span class="tparams">(T)</span><span class="params">(Node <em>n</em>)</span>; <a title="Permalink to this symbol" href="#SettingsLoader.castTo" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L61">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="SettingsLoader.load" href="./htmlsrc/SettingsLoader.html#L73" kind="function" beg="73" end="74">load</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#SettingsLoader.load" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L73">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">class <a class="symbol _class" name="ConfigLoader" href="./htmlsrc/SettingsLoader.html#L78" kind="class" beg="78" end="246">ConfigLoader</a> : SettingsLoader; <a title="Permalink to this symbol" href="#ConfigLoader" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L78">#</a></dt>
<dd class="ddef">
<div class="summary">Loads the configuration file of dil.</div>
<dl>
<dt class="decl">string <a class="symbol _variable" name="ConfigLoader.configFileName" href="./htmlsrc/SettingsLoader.html#L80" kind="variable" beg="80" end="80">configFileName</a>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#ConfigLoader.configFileName" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L80">#</a></dt>
<dd class="ddef">
<div class="summary">Name of the configuration file.</div></dd>
<dt class="decl">string <a class="symbol _variable" name="ConfigLoader.executablePath" href="./htmlsrc/SettingsLoader.html#L81" kind="variable" beg="81" end="81">executablePath</a>; <a title="Permalink to this symbol" href="#ConfigLoader.executablePath" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L81">#</a></dt>
<dd class="ddef">
<div class="summary">Absolute path to dil's executable.</div></dd>
<dt class="decl">string <a class="symbol _variable" name="ConfigLoader.executableDir" href="./htmlsrc/SettingsLoader.html#L82" kind="variable" beg="82" end="82">executableDir</a>; <a title="Permalink to this symbol" href="#ConfigLoader.executableDir" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L82">#</a></dt>
<dd class="ddef">
<div class="summary">Absolute path to the directory of dil's executable.</div></dd>
<dt class="decl">string <a class="symbol _variable" name="ConfigLoader.dataDir" href="./htmlsrc/SettingsLoader.html#L83" kind="variable" beg="83" end="83">dataDir</a>; <a title="Permalink to this symbol" href="#ConfigLoader.dataDir" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L83">#</a></dt>
<dd class="ddef">
<div class="summary">Absolute path to dil's data directory.</div></dd>
<dt class="decl">string <a class="symbol _variable" name="ConfigLoader.homePath" href="./htmlsrc/SettingsLoader.html#L84" kind="variable" beg="84" end="84">homePath</a>; <a title="Permalink to this symbol" href="#ConfigLoader.homePath" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L84">#</a></dt>
<dd class="ddef">
<div class="summary">Path to the home directory.</div></dd>
<dt class="decl"><a class="symbol _ctor" name="ConfigLoader.this" href="./htmlsrc/SettingsLoader.html#L86" kind="ctor" beg="86" end="93">this</a><span class="params">(Diagnostics <em>diag</em>)</span>; <a title="Permalink to this symbol" href="#ConfigLoader.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L86">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">ConfigLoader <a class="symbol _function" name="ConfigLoader.opCall" href="./htmlsrc/SettingsLoader.html#L95" kind="function" beg="95" end="98">opCall</a><span class="params">(Diagnostics <em>diag</em>)</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#ConfigLoader.opCall" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L95">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">string <a class="symbol _function" name="ConfigLoader.expandVariables" href="./htmlsrc/SettingsLoader.html#L100" kind="function" beg="100" end="132">expandVariables</a><span class="params">(string <em>val</em>)</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#ConfigLoader.expandVariables" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L100">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">void <a class="symbol _function" name="ConfigLoader.load" href="./htmlsrc/SettingsLoader.html#L134" kind="function" beg="134" end="220">load</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#ConfigLoader.load" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L134">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">string <a class="symbol _function" name="ConfigLoader.findConfigurationFilePath" href="./htmlsrc/SettingsLoader.html#L224" kind="function" beg="224" end="245">findConfigurationFilePath</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#ConfigLoader.findConfigurationFilePath" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L224">#</a></dt>
<dd class="ddef">
<div class="summary">Searches for the configuration file of dil.</div>
<p class="sec_header">Returns:</p>the filePath or null if the file couldn't be found.</dd></dl></dd>
<dt class="decl">class <a class="symbol _class" name="TagMapLoader" href="./htmlsrc/SettingsLoader.html#L249" kind="class" beg="249" end="285">TagMapLoader</a> : SettingsLoader; <a title="Permalink to this symbol" href="#TagMapLoader" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L249">#</a></dt>
<dd class="ddef">
<div class="summary">Loads an associative array from a D module file.</div>
<dl>
<dt class="decl"><a class="symbol _ctor" name="TagMapLoader.this" href="./htmlsrc/SettingsLoader.html#L251" kind="ctor" beg="251" end="254">this</a><span class="params">(Diagnostics <em>diag</em>)</span>; <a title="Permalink to this symbol" href="#TagMapLoader.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L251">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">TagMapLoader <a class="symbol _function" name="TagMapLoader.opCall" href="./htmlsrc/SettingsLoader.html#L256" kind="function" beg="256" end="259">opCall</a><span class="params">(Diagnostics <em>diag</em>)</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#TagMapLoader.opCall" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L256">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">string[string] <a class="symbol _function" name="TagMapLoader.load" href="./htmlsrc/SettingsLoader.html#L261" kind="function" beg="261" end="284">load</a><span class="params">(string <em>filePath</em>)</span>; <a title="Permalink to this symbol" href="#TagMapLoader.load" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L261">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">string <a class="symbol _function" name="resolvePath" href="./htmlsrc/SettingsLoader.html#L290" kind="function" beg="290" end="297">resolvePath</a><span class="params">(string <em>execPath</em>, string <em>filePath</em>)</span>; <a title="Permalink to this symbol" href="#resolvePath" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L290">#</a></dt>
<dd class="ddef">
<div class="summary">Resolves the path to a file from the executable's dir path
 if it is relative.</div>
<p class="sec_header">Returns:</p>filePath if it is absolute or execPath + filePath.</dd>
<dt class="decl">char[] <a class="symbol _function" name="GetExecutableFilePath" href="./htmlsrc/SettingsLoader.html#L302" kind="function" beg="302" end="302">GetExecutableFilePath</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#GetExecutableFilePath" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/SettingsLoader.html#L302">#</a></dt>
<dd class="ddef">
<div class="summary">Returns the fully qualified path to this executable.</div></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 2007-2008, Aziz Köksal. All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:12:53 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>